package com.example.demo.pojo;

import java.util.List;

public class Course {
    private Integer cno;

    private String cname;

    private Integer cpno;

    private Integer ccredit;

    private Integer tid;

    private String cclass;

    private Integer cnumber;
    private List<Sc> scList;

    public List<Sc> getScList() {
        return scList;
    }

    public void setScList(List<Sc> scList) {
        this.scList = scList;
    }

    public Integer getCno() {
        return cno;
    }

    public void setCno(Integer cno) {
        this.cno = cno;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname == null ? null : cname.trim();
    }

    public Integer getCpno() {
        return cpno;
    }

    public void setCpno(Integer cpno) {
        this.cpno = cpno;
    }

    public Integer getCcredit() {
        return ccredit;
    }

    public void setCcredit(Integer ccredit) {
        this.ccredit = ccredit;
    }

    public Integer getTid() {
        return tid;
    }

    public void setTid(Integer tid) {
        this.tid = tid;
    }

    public String getCclass() {
        return cclass;
    }

    public void setCclass(String cclass) {
        this.cclass = cclass == null ? null : cclass.trim();
    }

    public Integer getCnumber() {
        return cnumber;
    }

    public void setCnumber(Integer cnumber) {
        this.cnumber = cnumber;
    }

    @Override
    public String toString() {
        return "Course{" +
                "cno=" + cno +
                ", cname='" + cname + '\'' +
                ", cpno=" + cpno +
                ", ccredit=" + ccredit +
                ", tid=" + tid +
                ", cclass='" + cclass + '\'' +
                ", cnumber=" + cnumber +
                ", scList=" + scList +
                '}';
    }
}